#include "ShowBase.h"
#include <iostream>

#if defined(WIN32)
#include <Windows.h>
int WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR pCmdLine, int nCmdShow)
#else
int main(int argc,char** argv)
#endif
{
    auto result = EXIT_SUCCESS;
    try
    {
        ShowBase app;
        app.run();
    }
    catch (const std::runtime_error& e)
    {
        std::cerr << e.what() << std::endl;

        result = EXIT_FAILURE;
    }

    //system("pause");
    return result;
}